Skip to main content

Vec3

The Vector3 Module for the computer API!


Functions

newSingluar

sm.scrapcomputers.vec3.newSingluar( xyz )

Creates a vec3 by 1 number for xyz

Arguments:

  • xyz [ number ] The value for the X, Y and Z

Returns:

  • [ Vec3 ] The new vec3.

toRadians

sm.scrapcomputers.vec3.toRadians( vec3 )

Converts a vec3's numbers to radians.

Arguments:

  • vec3 [ Vec3 ] The vec3 to convert.

Returns:

  • [ Vec3 ] The new vec3.

toDegrees

sm.scrapcomputers.vec3.toDegrees( vec3 )

Converts a vec3's numbers to degrees.

Arguments:

  • vec3 [ Vec3 ] The vec3 to convert.

Returns:

  • [ Vec3 ] The new vec3.